package com.turman.builibrary.banner.core;

import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.viewpager.widget.ViewPager;

import com.turman.builibrary.banner.indicator.IBIndicator;

import java.util.List;


public interface IBBanner {
    void setBannerData(@LayoutRes int layoutRes, @NonNull List<? extends BBannerModel> models);
    void setBannerData(@NonNull List<? extends BBannerModel> models);
    void setIndicator(@NonNull IBIndicator indicator);
    void setAutoPlay(boolean autoPlay);
    void setLoop(boolean loop);
    void setInterval(int interval);
    void setBindAdapter(@NonNull IBindAdapter adapter);
    void setOnPageChangeListener(@NonNull ViewPager.OnPageChangeListener onPageChangeListener);
    void setOnBannerChickListener(@NonNull OnBannerClickListener onBannerChickListener);
    void setScrollDuration(int direction);

    interface OnBannerClickListener {
        void onBannerClick(@NonNull BBannerAdapter.BBannerViewHolder viewHolder, @NonNull BBannerModel bannerMo, int position);
    }
}
